export const param2Obj = (url:string) => {
    const search = url.split('?')[1]
    if (!search) { //{\""name:,page:1,pageSize:10\""}
      return {}
    }
    return JSON.parse('{"' + decodeURIComponent(search).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g, '":"') + '"}')
 }